N = 50;
interval = 2*rand(N, 2) - ones(N, 2);
for i = 1 : N 
    if (interval(i, 1) > interval(i, 2)) 
        temp = interval(i, 1);
        interval(i, 1) = interval(i, 2);
        interval(i, 2) = temp;
    end
end
label = randint(N, 1, [1, 5]);
[split_point, entropy] = id3_find_split(interval, label);
disp([split_point, entropy]);
